$(function() {
	$("#city").autocomplete({
		source: "index.php?r=search/searchCities",
		minLength: 1,
		select: function(event,ui){
			str=ui.item.id;
			tmp=str.split(",");
			fitBounds(tmp[0],tmp[1]);
			changePanelInfo(ui.item.value);
		}
	});
});